//
//  MainViewController.m
//  YYZB
//
//  Created by QZH的Mac on 16/4/2.
//
//

#import "MainViewController.h"

#import "MessageViewController.h"
#import "AppDelegate.h"

@interface MainViewController ()<UITabBarControllerDelegate>

@end

@implementation MainViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationController.navigationBarHidden = YES;
    
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    
    BOOL isFromRN = ((AppDelegate *)[UIApplication sharedApplication].delegate).isFromRN;
    if (isFromRN) {
        ((AppDelegate *)[UIApplication sharedApplication].delegate).fromRN = NO;
        MessageViewController * vc = [[MessageViewController alloc]init];
        vc.hidesBottomBarWhenPushed = YES;
        [self.selectedViewController pushViewController:vc animated:YES];
    }

}




@end
